home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol A-4 / (Vol A-4) Vol. A4.iso / Games / the-kitchen-of-doom.swf / scripts / DefineSprite_1104 / frame_1 / DoAction.as
Text File  |  2008-03-14  |  585b  |  32 lines

  1. stop();
  2. score = _root.currentScore;
  3. hiscoreTable = "ENVKitchenOfDoom";
  4. hiscoreTableID = "78";
  5. p = "";
  6. s = "";
  7. if(_parent.scoreMode == 0)
  8. {
  9.    gotoAndStop("ViewHiscores");
  10.    play();
  11. }
  12. Selection.setFocus("playerName");
  13. hsOKButtonInst.onRelease = function()
  14. {
  15.    _global.sfxUI.start();
  16.    if(playerName.text != "")
  17.    {
  18.       scoreMode = 1;
  19.       scoreEntry = score;
  20.       nameEntry = playerName.text;
  21.       gotoAndStop("ViewHiscores");
  22.       play();
  23.    }
  24. };
  25. onEnterFrame = function()
  26. {
  27.    if(Key.isDown(13))
  28.    {
  29.       hsOKButtonInst.onRelease();
  30.    }
  31. };
  32.